#include "Student.h"

Student::Student(int id, std::string name) : id(id), name(name)
{
}

Student::~Student()
{
}

Student &Student::operator=(const Student &s)
{
    id = s.id;
    name = s.name;
    return *this;
}

void Student::print()
{
    std::cout << "学生id:" << id << "  " << "学生姓名:" << name << std::endl;
}

int Student::getId() const
{
    return id;
}

std::string Student::getName() const
{
    return name;
}
